/**
 * Created by Administrator on 2018/3/19 0019.
 */
import React from 'react';


class TopBar extends React.Component {
    constructor(props) {
        super();
        this.state = {
            list: []
        }
    }
    goBack() {
        this.props.data.history.goBack();
    }
    render(){
        return (
            <div className="g_titleBar">
                <div className="main">
                    <h3>{this.props.title}</h3>
                    <b className="btnBack" onClick={this.goBack.bind(this)}>返回</b>
                </div>
                <div className="blank" />
            </div>
        );
    }
}
export default TopBar;